#!/bin/bash
appName=mesh
go mod tidy -compat="1.17"
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ${appName} .
docker build -t yh960124/${appName} .
docker push yh960124/${appName}:latest
sed -i 's/\r$//'  main.sh
./main.sh
